package com.aiti.lulian.mapper.newCard;

import com.aiti.lulian.entity.newCard.CardComponentData;
import com.aiti.lulian.entity.newCard.CardEnterpriseComponent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardComponentDataMapper extends BaseMapper<CardComponentData> {

    void updateCardComponentData(@Param("templateComponentId")String templateComponentId,@Param("componentMetaData")String componentMetaData, @Param("sort")Integer sort);

    List<CardEnterpriseComponent> selectMemberComponentsInfo(@Param("cardId") String cardId);

    void deleteByTemplateComponentIdList(@Param("list")List<String> templateComponentIdList);

    void updateCardComponentDataSort(@Param("templateComponentId")String templateComponentId, @Param("sort")Integer sort);
}
